package com.lyeducation.util; // package util;
//
// import javax.annotation.Resource;
//
// import org.hibernate.Session;
// import org.hibernate.SessionFactory;
// import org.springframework.stereotype.Component;
//
// @Component(value = "hibernateUtil")
// public class HibernateUtil {
//	@Resource(name = "sessionFactory")
//	private SessionFactory sessionFactory;
//
//	public Session openSession() {
//		Session session = sessionFactory.openSession();
//		return session;
//	}
//
// }
